import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 登录初始化
// export const initLogin = () => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/login/userDetailData`);

export const testApi = params => axios.get(`${SERVER.DMSCLOUD_PART}/demo/searchDemo`, { params });

// 工单查询 order=asc&limit=10&offset=0&undefined=9997&roStatus=12551001&dmsFuncId=30151000&_=1566353001082
export const searchRepairOrder = params => axios.get(`/dms.web/repair/rest/basedata/ttRepairOrder/SearchRepairOrder`, { params });

// 维修领料 查询
export const queryMaintainPicking = params => axios.get(`/dms.web/repair/rest/basedata/ttRepairOrder/SearchMaintainPicking/queryMaintainPicking`, { params });
